/**
 * @author: 小佘佘🦀
 * @description: 注销接口
 * 
 * */

import { isCodeMessage } from "../config"

export const logout = async () => {


    const response = await fetch(`/api-backend/logout`, {
        method: "post",
        mode: "no-cors",
        redirect: "manual" 
    })

    return isCodeMessage(response)
}